//
//  IMConversation.h
//  MLIM
//
//  Created by molon on 15/6/24.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#import <Foundation/Foundation.h>

@class IMMessage;
@interface IMConversation : NSObject <NSCoding>

@property (nonatomic, copy) NSString *conversationId;

@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong) NSURL *avatarURL;
@property (nonatomic, assign) NSInteger unreadCount;
//成员列表
@property (nonatomic, strong) NSArray *clientIds;

@property (nonatomic, strong) IMMessage *lastMessage;

//这个是有lastMessage的时候显示其时间，没有的话就以存储的为准
@property (nonatomic, assign) double lastMessageTime;

//有ID,    (没消息的会话不算数,以后再加这个)
- (BOOL)isValidToDisplay;
//有名字和头像
- (BOOL)isHaveDetail;

@end
